<html>
<head>
<title>hello world</title>
</head>
<!-- this is for the comment, body paragraph is for your code-->
<body>
<script type="text/javascript">
function doRun(){

		document.write("this is a function");

}
// calling the function
var hello = function(){
	document.write("hello guys");
	}

doRun();

	document.write("the result is: "); // this is how you print out the output in javascript
	alert("hello world"); // to pop out a window/output
	alert("lets do a calculator");
	
	var number1; // declare a variable
	var number2;
	
	var number1=prompt("enter the first number") // for the input
	var number2=prompt("enter the second number") // for the input
	var input1=prompt("what operation do you want: ") // for the input
	if (input1 == 'multiplication'){ // if else statement
			input1 = number1*number2
			document.write(input1);
		}
	else if (input1 == 'division'){
		input1 = number1/number2;
		document.write(input1);
		}
	else if (input1 == 'addition'){
		input1 = number1+number2;
		document.write(input1)
		}
	else if (input1 == 'substraction'){
		input1 = number1-number2;
		document.write(input1)
		}
	var cont=prompt("do you want to continue or not: ")
	if (cont == 'yes'){
	
	//************************************************************************************************************************************
	//to declare function                                                                                                                *
	//function do something(<parameters>){                                                                                               *
		// code                                                                                                                          *
	//}                                                                                                                                  *
	// calling the function                                                                                                              *
	//                                                                                                                                   *
	//do something(parameters);                                                                                                          *
	//                                                                                                                                   *
	//to return things                                                                                                                   *
	//function return Something(<parameters>){                                                                                           *
	//code                                                                                                                               *
	//return value;                                                                                                                      *
	//}                                                                                                                                  *
	//************************************************************************************************************************************
	
	
	
	//for the input
	//var input=prompt("title of popout","label tag")
	document.write=(input)
	// to declare a varibale
	
	
	


</script>
<p></p>
<p>this is for the paragaraph<br>this is my cool website</p>
<P><i>this is for italic</p>
<b>this is for bolded text</b>
<p><big>guys this is for the big text</big></p>




</body>
</html>
